package zhibi.cms.service;

import com.github.pagehelper.PageInfo;
import zhibi.cms.domain.Site;
import zhibi.cms.extra.pojo.SitePo;
import zhibi.frame.domain.Page;
import zhibi.frame.mybatis.example.Example;
import zhibi.frame.service.BaseService;

import java.util.List;

public interface SiteService extends BaseService<Site> {

    /**
     * 通过条件查找
     *
     * @param example
     * @param page
     * @return
     */
    PageInfo<SitePo> selectPoByExample(Example example, Page page);

    /**
     * 查看子级
     *
     * @param pid
     * @return
     */
    List<Site> selectByPid(String pid);
}
